package com.jkhan.demo.collection;

import java.util.HashSet;
import java.util.Set;

/**
 * @ClassName SetTest
 * @Description SetTest
 * @Author hjk
 * @Date 2022/1/26 21:19
 **/
public class SetTest {
    public static void main(String[] args) {
        Set set = new HashSet();

        set.add(456);
        set.add(123);
        set.add("hkj");
        set.add("test");

        set.add(123);
        set.remove(123);

        System.out.println(set);
    }
}
